Skip to content

Conversation

@PierreJeanjacquot
Copy link
Member

@PierreJeanjacquot PierreJeanjacquot commented Dec 22, 2025

Note

Introduces an API to inspect the lifecycle and results of bulk requests, backed by the PoCo subgraph.

  • Adds inspectBulkRequest in IExecDataProtectorCore with detailed (protected data addresses) and withResult (optional result download) options
  • New PoCo subgraph integration: resolve PoCo subgraph URL, store pocoSubgraphClient, and query tasks/datasets via getProtectedDataInBulk*
  • Extends types: splits TaskStatus into non-final and final states, adds InspectBulkRequest* request/response types
  • Validation/runtime updates: replace isValidProvider with isValidSigner; derive chainId using IExecNetworkModule
  • Test/infra: add e2e tests for inspectBulkRequest; include PoCo subgraph in docker-compose; add test:prepare (patches iexec check) and wire into start-test-stack; wire PoCo subgraph URL in test utils

Written by Cursor Bugbot for commit 3cbf7c0. This will update automatically on new commits. Configure here.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new inspectBulkRequest method to the DataProtector SDK, enabling users to inspect the status and details of bulk requests without waiting for completion. Additionally, it includes several refactorings: renaming isValidProvider to isValidSigner for clarity, simplifying chain ID detection by delegating to IExecNetworkModule, and adding infrastructure support for the PoCo subgraph.

Key changes:

  • New inspectBulkRequest method provides detailed inspection of bulk request status, tasks, and optionally results
  • Integration with PoCo subgraph to retrieve protected data addresses per task
  • Refactored validation function renamed from isValidProvider to isValidSigner to better reflect its purpose
  • Simplified getChainIdFromProvider implementation by leveraging IExecNetworkModule

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/sdk/src/lib/dataProtectorCore/inspectBulkRequest.ts Implements the core inspectBulkRequest method with support for fetching task details, statuses, and optional results
packages/sdk/src/lib/dataProtectorCore/getProtectedDataInBulk.ts Helper function to retrieve protected data addresses for tasks in a bulk request from the PoCo subgraph
packages/sdk/src/lib/dataProtectorCore/subgraph/getProtectedDataInBulkByBulkRequestHash.ts GraphQL query wrapper to fetch task and dataset information from PoCo subgraph
packages/sdk/src/lib/dataProtectorCore/IExecDataProtectorCore.ts Adds inspectBulkRequest method to the public API and renames validation calls from isValidProvider to isValidSigner
packages/sdk/src/lib/types/coreTypes.ts Defines types for InspectBulkRequestParams and InspectBulkRequestResponse, and splits TaskStatus into TaskStatus and TaskStatusFinal
packages/sdk/src/lib/types/internalTypes.ts Adds PocoSubgraphConsumer type for PoCo subgraph client dependency injection
packages/sdk/src/lib/IExecDataProtectorModule.ts Initializes PoCo subgraph client during module configuration
packages/sdk/src/utils/validators.ts Renames isValidProvider to isValidSigner for better clarity
packages/sdk/src/utils/getChainId.ts Simplifies chain ID detection by delegating to IExecNetworkModule instead of handling different provider types manually
packages/sdk/tests/e2e/dataProtectorCore/inspectBulkRequest.test.ts Comprehensive E2E tests covering INITIALIZING, IN_PROGRESS, and FINISHED bulk request states with various options
packages/sdk/tests/test-utils.ts Adds pocoSubgraphURL to test configuration
packages/sdk/tests/docker-compose.yml Adds poco-subgraph-deployer service to the test stack
packages/sdk/tests/prepare-iexec.js Script to patch iexec dependency for testing purposes (disables checkImplementedOnChain)
packages/sdk/package.json Adds test:prepare script and integrates it into start-test-stack

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

PierreJeanjacquot and others added 2 commits January 5, 2026 10:33
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@PierreJeanjacquot PierreJeanjacquot merged commit efda203 into main Jan 6, 2026
11 checks passed
@PierreJeanjacquot PierreJeanjacquot deleted the feat/inspect-bulk-request branch January 6, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants